<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8">
  <title>班级管理页面</title>

  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body style="background: #f2eada">
<div class="container">
  <h1 style="text-align: center; color: blue; font-family: Arial, sans-serif;">班级管理页面</h1>
  <hr>
  <h2 style="color: #27342b">修改班级信息</h2>

  <form action="#" th:action="@{/updateClasss/{id}(id=${class1.id})}" th:object="${class1}" method="POST">
    <input type="hidden" th:field="*{id}" />

    <input type="text" name="className" th:value="${class1.name}" class="form-control mb-4 col-4" width="50px" style="background-color: #94d6da; border-radius: 10px;">
    <input type="hidden" name="oldClassName" th:value="${class1.name}" />
    <button type="submit" class="btn btn-info col-2">修改</button>

  </form>


</div>

<br>
<a th:href="@{/classInfo}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回班级管理页面 </a>
<a th:href="@{/}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回系统首页 </a>

</body>


</html>